<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/business/buyer/template.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{assignToMeTaskList.firstResult}"></f:viewParam>
	   	<f:viewParam name="processKey" value="#{assignToMeTaskList.processKey}"></f:viewParam>
   	</f:metadata>
   
	<ui:define name="buyer_content">
		<div class="iethbox_tit">
			<h2>择优选取评分</h2>			
		</div>
	
   		<div class="iethbox_table">
   			<p:dataTable value="#{assignToMeTaskList.resultList}" var="_task">
				
				<p:column headerText="项目名称">
					<h:outputText value="#{_task.processVariables['projectName']}" />
				</p:column>
									
				<p:column width="120">
					<f:facet name="header">完成选取时间</f:facet>
					<h:outputText value="#{_task.processVariables['chooseTime']}">
						<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
					</h:outputText>		
				</p:column>
									
				<p:column width="120" style="text-align: center;">
					<f:facet name="header">操作</f:facet>
					<p:button value="开始评价" outcome="BestChooseAudit.xhtml">
						<f:param name="bulletinId" value="#{_task.processVariables['bulletinId']}" />
						<f:param name="taskId" value="#{_task.id}" />
					</p:button>
				</p:column>
				
			</p:dataTable>
   		</div>
			
		<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
			<ui:param name="entityList" value="#{assignToMeTaskList}" />			
		</ui:include>
      
   	</ui:define>
</ui:composition>
